package com.xz.realdemo2;

import com.xz.realdemo2.util.XMLUtil;
import com.xz.realdemo2.factory.CarFactory;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     Client   
 * @package    com.xz.realdemo2  
 * @date   2019/11/27 10:20  
 * @explain
 */
public class Client {

    public static void main(String[] args) {
        Object bean = XMLUtil.getBean();
        if (null != bean && bean instanceof CarFactory){
            CarFactory carFactory = (CarFactory) bean;
            carFactory.extractCar("王总");
        }
    }

}
